var ProductA = require('./productA.js');
var ProductB = require('./ProductB.js');

exports.createProduct = function(type) {
  switch(type){
    case 'ProductA':return new ProductA();
    case 'ProductB':return new ProductB();
    default:
  }
};